Move #5 — flagship: the memory contract on the real E. coli genome - #22
Merged
Conversation
A reproducible script fetches the real E. coli K-12 MG1655 reference (NCBI), simulates deterministic reads, runs index→align→sort, and demonstrates the contract both ways on a real 4.64 Mbp genome: fits a 256 MiB budget (plan→variants --enforce→verify) and refuses an 8 MiB one (exit 3). Committed artifact = a docs/findings writeup + the fit receipt + a README pin; big data is gitignored and regenerated by the script. Honest: real reference, simulated reads, memory-contract claim (not accuracy). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…iven FASTA (Move #5)
…oli genome (Move #5)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The legible "see it work" proof for the memory contract, on a real genome.
Result
On the real E. coli K-12 MG1655 chromosome (NCBI RefSeq GCF_000005845.2 / NC_000913.3, 4,641,652 bp, 30× simulated reads):
planpredicts ~16 MiB[FITS]→variants --enforcerealized peak 22 MiB (working set 4.7 MiB, 5,924 calls) →verify: OK.What's included
scripts/flagship_ecoli_demo.sh— one-command, reproducible (fetch real ref from NCBI → simulate reads → index→align→sort → contract both ways; asserts every gate). Runs ~80s in-house at 30×.scripts/generate_toy_data.py --reference— simulate reads from a given FASTA.docs/findings/2026-06-01-flagship-ecoli-contract.md+ the committed receiptdocs/findings/ecoli.vcf.manifest.json.results/) is gitignored.Honest scope
Real reference; reads are simulated (no SRA tooling in CI) — the contract claim is read-realism-independent. This is a memory + reproducibility result, not an accuracy benchmark (no GATK comparison). The index build used 185 MiB (O(reference)) — the Phase-D frontier. No engine code changed; build + full suite green.
🤖 Generated with Claude Code